﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: "Register" %>.</h1>
        <h2>Use the form below to create a new account.</h2>
    </hgroup>

    <table>
        <tr>
            <td class="auto-style2">First Name</td>
            <td class="auto-style3">
                <asp:TextBox runat="server" ID="fNameTextBox" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="fNameTextBox"
                    CssClass="field-validation-error" ErrorMessage="The first name field is required." />
            </td>


        </tr>
        <tr>
            <td class="auto-style1">Surname</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="sNameTextBox" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="sNameTextBox"
                    CssClass="field-validation-error" ErrorMessage="The surname field is required." />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Passport Number</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="PassportTextBox" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="PassportTextBox"
                    CssClass="field-validation-error" ErrorMessage="The passport number field is required." />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Address</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="AddressTextBox" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="AddressTextBox"
                    CssClass="field-validation-error" ErrorMessage="The address field is required." />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Phone</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="PhoneTextBox" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="PhoneTextBox"
                    CssClass="field-validation-error" ErrorMessage="The phone field is required." />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Gender</td>
            <td class="auto-style4">
                <asp:RadioButton ID="RadioButton1" Text="Male" GroupName="Genre"
                    runat="server" AutoPostBack="true" />

                <asp:RadioButton ID="RadioButton2" Text="Female" GroupName="Genre"
                    runat="server" AutoPostBack="true" />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Username</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="UserName" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="UserName"
                    CssClass="field-validation-error" ErrorMessage="The user name field is required." />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Email</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="EmailTextBox" TextMode="Email" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="EmailTextBox"
                    CssClass="field-validation-error" ErrorMessage="The email address field is required." />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Password</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="Password" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="Password"
                    CssClass="field-validation-error" ErrorMessage="The password field is required." />
            </td>

        </tr>
        <tr>
            <td class="auto-style1">Confirm Password</td>
            <td class="auto-style4">
                <asp:TextBox runat="server" ID="ConfirmPassword" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ConfirmPassword"
                    CssClass="field-validation-error" Display="Dynamic" ErrorMessage="The confirm password field is required." />
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword"
                    CssClass="field-validation-error" Display="Dynamic" ErrorMessage="The password and confirmation password do not match." />
            </td>

        </tr>

        <tr>
            <td class="auto-style1">
                <asp:Button ID="LoginBtn" runat="server" OnClick="Register_Click" Text="Register" Width="151px" />
            </td>
            <td class="auto-style4">&nbsp;</td>

        </tr>
        
    </table>
    <asp:Label ID="ValidationLabel" runat="server"></asp:Label>

</asp:Content>
